﻿using Demo.PetaPoco.Application.Dtos.Area;
using PmSoft.FormSchema.Attributes;
using System.ComponentModel.DataAnnotations;

namespace Demo.PetaPoco.Application.Dtos.Dept;

[FormName("deptCreateModel")]
public class DeptCreateModel : IAreaEditModel
{
	[Display(Name = "单位名称")]
	[Required(ErrorMessage = "{0}为必填项")]
	public string Name { get; set; }

	[Display(Name = "行政区划")]
	[FromApiCascader("common/area-children")]
	public string[]? Areas { get; set; }

}
